package com.tiyende.kash.loop.ui.activity

import android.view.View
import com.tiyende.kash.loop.R
import com.tiyende.kash.loop.common.CommonActivity
import com.tiyende.kash.loop.databinding.TiyendeActivityLimitRejectedBinding
import com.tiyende.kash.loop.event.TiyendeEventPointType
import com.tiyende.kash.loop.utils.helper.TiyendeProcessHelper

/**
 * TiyendeCredit
 * @Author wwdeng
 * @CreateTime: 2024/12/16 13:41
 * @Annotation：额度审核被拒绝
 */
class TiyendeLimitRejectedActivity: CommonActivity() {
    lateinit var binding: TiyendeActivityLimitRejectedBinding

    override fun getTiyendeRootView(): View {
        binding = TiyendeActivityLimitRejectedBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initTiyendeView() {
        setTiyendeBackBtnRes(R.mipmap.tiyende_back_white)
        setTiyendeRightBtnRes(R.mipmap.tiyende_customer_white)
        setTiyendeTextTitleVisibility(View.GONE)
        setTiyendeSwitchLangBtnRes(R.mipmap.tiyende_language_icon)
        eventRemark = "Limit_Rejected_Page"
    }

    override fun initTiyendeListener() {
        super.initTiyendeListener()
    }

    override fun loadTiyendeData() {
        binding.textLimitRejectedApplyAgainDate.text = String.format(getString(R.string.tiyende_order_details_rejected_tips),TiyendeProcessHelper.queryTiyendeAuthenticationApplyAgainDate())
    }

    override fun onStart() {
        super.onStart()
        addEventPointRequestAction(TiyendeEventPointType.PAGE.TIYENDE_PAGE_CREDIT_REJECTED_START)
    }

    override fun onDestroy() {
        super.onDestroy()
        addEventPointRequestAction(TiyendeEventPointType.PAGE.TIYENDE_PAGE_CREDIT_REJECTED_END)
    }
}